﻿using AutoBuild.Console.CommandLine;
using AutoBuild.Core.Configuration;
using Castle.MicroKernel.Registration;
using Castle.Windsor;

namespace AutoBuild.Console
{
    class ConsoleWindsorConfiguration : WindsorConfiguration
    {
        //---------------------------------------------------------
        public ConsoleWindsorConfiguration() 
        {
        }

        //---------------------------------------------------------
        public override void ConfigureContainer(IWindsorContainer container)
        {
            container.Register(
                Component
                    .For<CommandLineParser>()
                    .LifeStyle.Transient,
                Component
                    .For<Program>()
                );

            base.ConfigureContainer(container);
        }

        
    }
}